Holds array data, with ownership. More...
Public Member Functions | |
virtual | ~ArrayData () |
ArrayView< T > * | subView (size_t offset, size_t size) |
Public Attributes | |
T * | _ptr = nullptr |
The data pointer. | |
size_t | _size = 0 |
The size of the data held. | |
Holds array data, with ownership.
|
virtual |
Destructor.
ArrayView<T>* nkAstraeus::ArrayData< T >::subView | ( | size_t | offset, |
size_t | size | ||
) |
Allows to retrieve a view over the data, with a given offset and size. A view doesn't own the data, the ArrayData remains the owner.
offset | The offset, in the data, from where the view should start. |
size | The size the view should have. |